// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import axios from 'axios'
import VueAxios from 'vue-axios'
import request from './api/request'
import 'element-ui/lib/theme-chalk/index.css';
import '@/filter/index.js'
import '@/directive/index.js'
import '@/components'
import '@/assets/icons/index'

import VueParticles from 'vue-particles'
import '@/style/global.scss'

import store from './store'

import tab from '@/common/tab'


Vue.config.productionTip = false




// 通用的请求
Vue.prototype.$rq=request
Vue.prototype.$tab = tab


/* eslint-disable no-new */
new Vue({
  el: '#app',
  store,
  router,
  components: { App },
  template: '<App/>'
})
Vue.use(VueAxios, axios)
Vue.use(ElementUI)

// 取消默认的浏览器自带右键
window.oncontextmenu = function (e) {
  e.preventDefault()
}

window.router = router
